﻿
@page
@model AdminUI.Pages.OrderManage.Order10ConfirmModel
@{
    var F = Html.F();
}

@section body{
    <f:Form ID="Form1" ShowBorder="false" ShowHeader="false" AutoScroll="true" BodyPadding="15" IsViewPort="true">
        <Rows>
            @* <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:Label Text="这里可以主动帮客户确认是否付款" CssStyle="color:red"></f:Label>
                </Items>
            </f:FormRow> *@
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:TextBox ID="OrderID" Required="false" Label="订单ID" Text="@Model.Current.OrderID" Readonly="true"></f:TextBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:DropDownList ID="PayeeAccount" Label="收款账户" DataValueField="Value" DataTextField="Name" SelectedValue="" DataSource="@ViewBag.AccountList"></f:DropDownList>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:DatePicker ID="TransferDate" Label="转账日期" DateFormatString="yyyy-MM-dd" EnableEdit="false" EmptyText="请选择转账日期" Required="true" SelectedDate="DateTime.Now"></f:DatePicker>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:TextBox ID="TradeNo" Label="交易流水号" EmptyText="请输入交易流水号" Required="false"></f:TextBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:TextArea ID="TransferMemo" EmptyText="请输入转账备注" Label="转账备注" AutoGrowHeight="true" AutoGrowHeightMin="100" AutoGrowHeightMax="200"></f:TextArea>
                </Items>
            </f:FormRow>
        </Rows>
        <Toolbars>
            <f:Toolbar ID="Toolbar1" Position="Top" ToolbarAlign="Left">
                <Items>
                    <f:Button ID="btnClose" Text="关闭" Icon="Cross" IconFont="Close" OnClientClick="F.activeWindow.hide();"></f:Button>
                    <f:Button ID="btnReset" Text="重置" Icon="ArrowUndo" OnClientClick="F.ui.Form1.reset();"></f:Button>
                    <f:Button ID="btnSubmit" Text="确定" Icon="SystemSave" OnClick="@Url.Handler("btnSubmit_Click")" _ValidateForms="Form1" OnClickFields="Form1"></f:Button>
                </Items>
            </f:Toolbar>
        </Toolbars>
    </f:Form>

    <f:Window ID="Window1" IsModal="true" Hidden="true" Target="Top" EnableResize="true" EnableMaximize="true" EnableIFrame="true" Width="400" Height="500">
        <Listeners>
            <f:Listener Event="close" Handler="onWindowClose('refresh');"></f:Listener>
        </Listeners>
    </f:Window>

}

@section script {
    <script>
    /* 弹窗选择
        function onSelectMenu(event) {
            var menuType = F.ui.MenuType.getValue();
            var path = "/Dialog/SelectMenu?menuType="+menuType;
            //alert(path);
            F.ui.Window1.show(path, '选择上级菜单', 400, 500);
        }

        function onSelectIcon(event) {
            var path = "/Dialog/SelectIconFont";
            F.ui.Window1.show(path, '选择图标字体');
        }

        function updateIconFontValue(iconClass) {
            F.ui.Icon.setText(iconClass);
        }

        function updateTreeSelectValue(treeNode) {
            F.ui.ParentName.setText(treeNode.id + '-' + treeNode.text);
            F.ui.ParentID.setValue(treeNode.id);
        }
    */
    </script>
}
